<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class FsUserIm extends Model
{
    protected  $fillable = ['im_id','fs_user_id','add_im_count'];

    public function user(){
        return $this->belongsTo(User::class);
    }

    public function fsUser(){
        return $this->belongsTo(FsUser::class,'fs_user_id','id');
    }

    public function im(){
        return $this->belongsTo(UserIm::class,'im_id','id');
    }
}
